﻿using Draco.Algorithms;

namespace BusinessEntities
{
    public class Restaurant: IPeriphery
    {
        public int ID { get; }
        public string Name { get; }
        public int X { get; }
        public int Y { get; }
        public string GeoHash { get; }

        public int Grade { get; }

        public Restaurant() { }

        public Restaurant(int id, string name, int x, int y ,int grade)
        {
            ID = id;
            Name = name;
            X = x;
            Y = y;

            Grade = grade;

            GeoHash = D_GeoHash.GetGeoHash(X, Y);
        }

        public override string ToString()
        {
            return "ID:" + ID + "\tName:" + Name + "\tX:" + X + "\tY" + Y;
        }

    }
}
